package org.apache.dolphinscheduler.dao.utils;

import java.util.HashMap;
import java.util.Map;

public class DataBaseInfo {
    private static Map<String,String> dataBaseInfoMap  = new HashMap<>();
    static{
        dataBaseInfoMap.put("mysql","com.mysql.jdbc.Driver");
        dataBaseInfoMap.put("oracle","oracle.jdbc.driver.OracleDriver");
        dataBaseInfoMap.put("postgresql","org.postgresql.Driver");
        dataBaseInfoMap.put("sqlser","net.sourceforge.jtds.jdbc.Driver");
    }
    //通过linkType拿到连接信息
    public static String getPointByRsuId(String linkType) {
        return dataBaseInfoMap.get(linkType);
    }
}
